/*
 * Teknei 2014 - All rights reserved
 */
package com.teknei.acabus.example.services;

import java.util.List;

import javax.ejb.Local;

import com.teknei.acabus.ServiceException;
import com.teknei.acabus.core.entities.TableA;

/**
 * Interface of services related to TableA
 * @author Jorge Amaro
 * @version 1.0
 * @since 1.0
 *
 */
@Local
public interface TableAService {

	/**
	 * Finds all elements of TableA
	 * @return the list
	 * @throws ServiceException
	 */
	List<TableA> findAll() throws ServiceException;

	/**
	 * Updates a TableA instance
	 * @param entity the instance
	 * @throws ServiceException
	 */
	void update(TableA entity) throws ServiceException;

	/**
	 * Saves a TableA instance
	 * @param entity the instance
	 * @return the id of the record
	 * @throws ServiceException
	 */
	int save(TableA entity) throws ServiceException;

	/**
	 * Deletes a TableA instance
	 * @param entity the instance
	 * @throws ServiceException
	 */
	void delete(TableA entity) throws ServiceException;

}
